local jinghu2022 = fk.CreateSkill{
  name = "jinghu2022",
  tags = { Skill.Compulsory },
}


jinghu2022:addEffect(fk.CardUseFinished, {
  anim_type = "offensive",
  can_trigger = function(self, event, target, player, data)
    if target == player and player:hasSkill(jinghu2022.name) and  data.damageDealt and
    (data.card.trueName == "slash" or (data.card:isCommonTrick() and data.card.is_damage_card)) then
      return #table.filter(data.tos, function (p)
        return data.damageDealt[p] and data.damageDealt[p] > 0
      end) == 1
    end
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    for _, p in ipairs(data.tos) do
      if data.damageDealt[p] and data.damageDealt[p] > 0 then
        room:loseHp(p, 1, jinghu2022.name)
      end
    end
  end,
})



return jinghu2022

